<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        var date = new Date();
        // getTime() 转换时间戳 从1970年1月1日8:00 到现在的毫秒数
        console.log(date.getTime())

        //时间戳转正常数
        var date2 = new Date(1730683864622)
        console.log(date2);

        date.setTime(12389362390)
        console.log(date);
    </script>
</body>
</html>